import { Camera, Entity } from "@nirvana/core";

// console.log(new Camera());
// console.log(new Camera());
// console.log(new Camera());
// console.log(new Camera());

const entity = new Entity();
const entity1 = new Entity();
const entity2 = new Entity();
const entity3 = new Entity();
const entity4 = new Entity();
const entity5 = new Entity();
const entity6 = new Entity();

entity.add(entity1);
entity.add(entity2);
entity1.add(entity3);
entity2.add(entity4);
entity2.add(entity5);
entity2.add(entity6);

console.log(entity);
console.log(entity2.some(entity4));
console.log("================");
console.log(entity2.remove(entity4));
console.log(entity2.remove(entity6));
// entity.remove(entity2);
console.log(entity4);
console.log(entity5);
console.log(entity2.find(entity4));
console.log(entity.find(entity5));
console.log(entity2.find(entity6));
console.log(entity2.find(entity5));
console.log(entity.find(entity6));

entity.each((entity) => {
  console.log(entity);
});
